#include<stdio.h>

int cut(int n)
{
    int count = 0;
    int tmp = 1;
    while(n>0)
    {
        n -= tmp;
        count++;
        tmp *= 2;
    }
    return count;
}


int main()
{
    int t;
    scanf("%d",&t);
    while(t--)
    {
        int v;
        scanf("%d",&v);
        printf("%d\n",cut(v));
    }
    return 0;
}